/* Fix for Uppy Dashboard styles that get overridden by Tailwind */
.uppy-Dashboard-AddFiles-title {
  position: absolute !important;
  top: 60% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 1 !important;
  white-space: nowrap !important;
}

/* Ensure other critical Uppy styles aren't overridden */
.uppy-Dashboard-inner {
  position: relative !important;
  margin: auto;
  max-height: 100vh;
}

.uppy-Dashboard-AddFiles {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  height: 100% !important;
}

/* Preserve Uppy's z-index layering */
.uppy-Dashboard-files {
  position: relative !important;
  z-index: 2 !important;
}

/* Ensure Uppy modal appears above other content */
.uppy-Dashboard--modal {
  z-index: 1001 !important;
}

/* Force Uppy styles to take precedence over Tailwind */
.uppy-Dashboard * {
  box-sizing: border-box !important;
}

/* Fix icon sizes in specific Uppy components */
.uppy-StatusBar-actionCircleBtn .uppy-c-icon,
.uppy-StatusBar-actionBtn--retry .uppy-c-icon {
    height: 1.8rem !important;
    width: 2.2rem !important;
}

/* 针对窄屏幕设备的自适应调整 */
@media (max-width: 480px) {
    .uppy-StatusBar-actionCircleBtn .uppy-c-icon,
    .uppy-StatusBar-actionBtn--retry .uppy-c-icon {
        height: 1.5rem !important;
        width: 2rem !important;
    }
}

/* 重试按钮容器样式 */
.uppy-StatusBar-actionBtn--retry {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.25rem 0.75rem !important;
    white-space: nowrap !important;
    position: relative !important;
    line-height: 1.4 !important;
    min-height: 1.4rem !important;
    height: auto !important;
    font-size: 0.875rem !important;
    border-radius: 0.375rem !important;
    transition: all 0.2s ease !important;
}

/* 重试按钮图标样式 */
.uppy-StatusBar-actionBtn--retry .uppy-c-icon {
    height: 1.4rem !important;
    width: 1rem !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
    display: block !important;
}

/* 确保重试按钮文字正常显示 */
.uppy-StatusBar-actionBtn--retry::before {
    content: " " !important;
    display: inline !important;
    width: 0.5rem;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}
